#include<bits/stdc++.h>

using namespace std;

int main() {
    cout << __gcd(6, 8) << endl;
    return 0;
}
